package user;

import book.BookList;
import operatation.IOperatation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86185
 * Date: 2023-03-23
 * Time: 20:17
 */
public abstract class User {
    protected String name;

    public IOperatation[] iOperatations;
    public User(String name) {
        this.name = name;
    }
    public abstract void menu();

    public void doOperatation(int choice,BookList bookList) {
        this.iOperatations[choice].work(bookList);
    }
}
